

function generateArray() {
  let arrGenerate = [];
  for (var i = 0; i < 26; i++) {
    var letter = String.fromCharCode(97 + i);
    arrGenerate.push(letter);
  }
  return arrGenerate;
}

export const zimubiao = generateArray();

export const getQpXY = (msg: string) => {
  const y = +msg.replace(/[^0-9]+/, "");
  const zimu = msg.replace(/[^a-zA-Z]+/, "");
  const x = zimubiao.findIndex((v) => v.toLocaleLowerCase() == zimu.toLocaleLowerCase());
  console.log('当前' + x)
  return { x, y }

}